//////////////////////////////////////////////////////////////
// TITLE: 			Reappend Split Annuals
// DESCRIPTION:
// Reform the data from by year to by masterportfolioid group.
// Append all years within each group number.
//////////////////////////////////////////////////////////////

local part = `1'
foreach year of numlist 2005/2020 {
	cap append using "$reconstruct/`year'/HD_`year'_part_`part'"
}
sort MasterPortfolioId date_m mns_class mns_subclass
save "$reconstruct/HD_part_`part'", replace emptyok
